const db = wx.cloud.database()
const {get_others} = require('../../../Class/GetOthers.js');
const getOthers = new get_others();
Page({
  data: {},
  onLoad(options) {
    wx.showLoading({
      title: '数据通信中',
      mask:true
    })
    db.collection('panduan').get().then(res=>{
      const navbarHeight = getOthers.Set_navbar()
      this.setData({
        panduan:res.data[0].flag,
        url:options.url,
        navbarHeight
      })
    })
    wx.hideLoading()
  },
  GoBack(){
    wx.navigateBack({
      delta:1
    })
  }
})